package com.example;
import com.example.jaxws.SayGoodbye;
import com.example.jaxws.SayGoodbyeResponse;
import com.example.jaxws.SayHello;
import com.example.jaxws.SayHelloResponse;
public class GreeterAdapter {
  private Greeter greeter = new Greeter();

  public SayHelloResponse sayHello(SayHello request){
    String name = request.getArg0();
    String responseGreeting = greeter.sayHello(name);
    SayHelloResponse response = new SayHelloResponse();
    response.setReturn(responseGreeting);
    return response;
  }

  public SayGoodbyeResponse sayGoodbye(SayGoodbye request){
    String name = request.getArg0();
    String responseGreeting = greeter.sayGoodbye(name);
    SayGoodbyeResponse response = new SayGoodbyeResponse();
    response.setReturn(responseGreeting);
    return response;
  }
}